package com.atguigu.Spring5.pojo;

import org.springframework.stereotype.Component;

/**
 * @Author xiao hu die
 * @Date 2022/3/30 15:07
 * @Version 1.0
 */
/**默认的BeanId是cooker也就是首字母小写*/
@Component
public class Cooker {
 private String name;
 private Integer id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Cooker() {
        System.out.println("cooKer的无参构造");
    }

    @Override
    public String toString() {
        return "Cooker{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
